<%@page language="java" pageEncoding="UTF-8"%>    
<%@page contentType="text/html; charset=UTF-8"%>
<%@page import="java.net.*" %> 
<%@page import="net.ssta.common.LoginUser" %>


<%        
		String path = request.getContextPath();
		response.setHeader("ContentType","text/xml");  
        response.setHeader("Pragma","No-Cache");   
        response.setDateHeader("Expires",0);   
        response.setHeader("Cache-Control","No-Cache");  
%>

<%  
	String userid = LoginUser.getUserId();
	//request.setCharacterEncoding("gbk");
	String unitid = request.getParameter("unitid");
	String title = request.getParameter("title");
    
    if(unitid == null ) unitid="";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>   
<!--  <meta http-equiv="Content-Type" content="text/html; charset=gbk" />-->
<title>科研单位－国家安科网</title>
<!-- 
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="stylesheet" type="text/css" href="../common/css/style.css" />
-->

<link href="<%=path%>/common/css/layout.css" rel="stylesheet" type="text/css" />
<link href="<%=path%>/common/css/user.css" rel="stylesheet" type="text/css" />
   
<script language = "javascript" src = "../common/js/list.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/pool.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/log.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/load.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/charge.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/mycollection.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/g_variables.js" type = "text/javascript"></script>
<script language = "javascript" src = "../common/js/message.js" type = "text/javascript"></script>
<script language = "javascript" src = "js/search.js" type = "text/javascript"></script>
<script language = "javascript" src = "js/setcondition.js" type = "text/javascript"></script>

<script type='text/javascript' src="<%=path%>/includes/js/jquery.js"></script>

<xml id="resultDom"></xml>



<style >
.commonlist{
    width:96%;
    margin:0 auto;
	padding:0;
}
.commonlist li{
    width:100%;
    height:25px;
	line-height:25px;
	list-style:none;
	text-align:left;
	border-bottom:1px dashed #CCCCCC;
}
</style>



</head>


<script>  


	//推荐科研机构
	 function load_unit_pos2(divid,http){
				$.ajax({
					type:"POST",
					url:http,
					error:function(msg)
					{
						//alert("操作失败，请重试！"+msg);
					},
				    success:function(data)
				    {
				    	var data = eval("("+data+")");
						var html="";
						var i=0;
						for(i=0;i<data.length&&i<10;i++){
							
							html+="<li>";
							//html+="<img src=\"/SSTA/common/images/point.gif\" />";
							html += "<a  style=\"color:#0F49A8;\" href = '<%=path%>/unit/info.jsp?unitid=";
					        html += data[i]['unitid'];
					        html += "&title=" + data[i]['unitname'];
					        html += "' target=\"_blank\">";
					      
					        html += data[i]['unitname'];
					        html += "</a>";
					        html+="</li>";
						}
						
						for(var j=i;j<10;j++){
							html+="<li><a style=\"width:100%\" href=\"#\"></a></li>";
						}

						$("#"+divid).html(html);
					}
				});
	 }
	
	
	


	$("document").ready(function()
	{
		//getProvince_o();
        //getOption("common","NewEnergyClass","");
        
        
        //按键登录
		$("#item_9").keydown(function(e){ 
				 var curkey = e.which; 
				 if(curkey == 13){
					doSearch();
		         }
		});
        
        
        var columinfoid = "<%=unitid%>";
        var title = "<%=title%>";
        //sendLog("003","科研单位",columinfoid,title);
		url = "http://" + location.host + "<%=path%>/unit/agent/getUnitInfo.jsp?unitid=<%=unitid%>&jtime=" + (new Date()).getTime();       
        XmlHttpPool.GetRemoteData(url,showUnitInfo);
        //showUnitInfo();		
        
        
        
        //加载推荐科研单位
	     var http = "<%=path%>/front/UnitFrontServlet?method=getRecommendUnitList&showType=ChannelShow";
		 load_unit_pos2("tjjglist",http);
        
	});
	
	
	
	function _addCollection(){
		document.getElementById("collectionurl").value=window.location.href;
		 $.ajax({
				type: "POST", url: "<%=path%>/membercenter/collection?method=addCollection",
				data:$("#collectionform").serialize(),
				error:function(){alert("与服务器失去联系，请刷新本页面后再重试！");},
				success: function(msg){
					alert("收藏操作成功!");
				}
			 });
	}
	
	
</script>

<body>


<%@include file="../common/toplogin.jsp"%>
<%@include file="../common/topbanner.jsp"%>
<%@include file="../common/topmenu.jsp"%>

 

<!--页面主体部分-->
<div id="contentmain">
	
	
	<div id="all_content_left">
    	<%@include file="../common/adleft.jsp"%>
		<div id="border_box" style="padding-bottom:30px;">
		    <div id="ind_title"><font><a href="<%=path%>/unit/search_results.jsp?key=ChannelShow='1'&topicname=推荐机构" class="blue">推荐机构</a></font><span><a href="<%=path%>/unit/search_results.jsp?key=ChannelShow='1'&topicname=推荐机构" class="blue">更多...</a></span></div>
			<ul class="commonlist" id="tjjglist">
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
				<li><a href="#"></a></li>
			</ul>
		</div>
	</div>   


	<div id="all_content_right">
	    <div id="topsearchbox">
		    <form id="searchform" name="searchform" action="<%=path%>/unit/search_results.jsp" method="post" >
				<ul>
					<li><img src="<%=path%>/common/images/search/icon.gif" /></li>
					<li><span class="bluetitle">关键字</span></li>
					<li>
						 <input type="text" style="width:0px;border:0px;" />
	                 	 <input type="text" name="item_9" id="item_9" size="18" class="input_text_grey" value=""/>
	                     <input type="hidden" name="topicname" id="topicname" value="" />
	                 　　   <input type="hidden" name="key" id="key" value=""/>
	                     
	                     <!-- 
		                 <select id="province" class="select">
	                     		<option value="">选择省份</option>
	                     </select>
	                     <select name="NewEnergyClass" id="NewEnergyClass">
				   	
	                     </select>
	                      -->
					</li>
					<li>
						<a href="javascript:doSearch();">
							<img  src="<%=path%>/common/images/search/botton1.gif" style="border:0px;margin-top:4px;"/>
						</a>
					</li>
					<!-- 
					<li>
						<span><a href="advancedsearch.jsp" target="_blank">高级搜索</a></span>
					</li>
					<li>
						<a href="needforexpert.jsp" target="_blank">帮您找专家</a>
					</li>
					 -->
				</ul>
			</form>
		</div>
		<div id="border_box">
		    <div id="ind_title"><font>当前位置：<a href="/cms" class="blue">首页</a> > <a href="<%=path%>/common/indexSearch.jsp?searchtype=3_all" class="blue">科研机构</a> > 详细信息</font><span></span></div>
			<div id="int_show_con_title"></div>
			
			<div style="width:96%;height:2px;border-bottom:1px dashed #CCCCCC;">
			    <span></span>
				<span></span>
				<span></span>
				<span></span>
			</div>
			
			<div id="int_show_con_content" style="">
				<span id="zoom" >
					 <div id="progressbar" class="bar_progress">数据加载中,请稍候......</div>	
	         		 <div id="showUnitInfo" style="text-align:left;margin:auto;vertical-align:top;padding-top:10px;padding-bottom:30px;height:auto;"></div> 	
				</span>
			</div>
			
			<div style="text-align:center;margin-top:30px;padding-bottom:20px;">
	       		<%if(userid!=null && userid!=""){//只有用户登录后才能显示收藏按钮%>
					<span onClick="javascript:_addCollection();"><img src="<%=path%>/common/images/intshow/botton4.gif" border="0" style="cursor:pointer;" /></span>&nbsp;
                <%}%>
			</div>
			
		</div>
	</div>
</div>


<%@include file="../common/bottom.jsp"%>


<form name="collectionform" id="collectionform">
<cms:infobase>
	<input type="hidden" name="channelid" id="channelid" value="12" />
    <input type="hidden" name="channelname" id="channelname" value="科研机构" />
    <input type="hidden" name="infotitle" id="infotitle" value="" />
    <input type="hidden" name="infoid" id="infoid" value="<%=unitid%>" />
    <input type="hidden" name="collectionurl" id="collectionurl" value="" />
</cms:infobase>    
</form>


</body>
</html>


